package com.kaikeba.servlet.handler;

import java.util.HashMap;
import java.util.Map;

import com.kaikeba.servlet.adapter.annotation.Controller;
import com.kaikeba.servlet.adapter.annotation.RequestMapping;
import com.kaikeba.servlet.adapter.annotation.ResponseBody;

@Controller
public class UserController {
	
	@RequestMapping(value="/query")
	@ResponseBody
	public Map<String,Object> query(String id,String name){
		Map<String,Object>map=new HashMap<>();
		map.put("id", id);
		map.put("name", name);
		return map;
	}
	
	@RequestMapping(value="/del")
	public String del(String id){
		return "ok";
	}

}
